package com.comp6521.project01;

import java.util.ArrayDeque;
import java.util.Queue;

public abstract class Buffer {

	protected Queue<Integer> data;
	protected int bufferSize;
	protected String filename;
	

	public Buffer(int bufferSize, String filename) {

		data = new ArrayDeque<Integer>();
		this.bufferSize = bufferSize;
		this.filename = filename;
	}
	
	public int getBufferSize() {
		return bufferSize;
	}

	public void setBufferSize(int bufferSize) {
		this.bufferSize = bufferSize;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public boolean empty() {
		return data.isEmpty();
	}
}
